<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/passport.css?v=<?php echo Yii::app()->params['version']['CSS'];?>"/>
<div class="banner">
	<div class="wrap">
    	<div class="reg_success">
        	<span>8秒后关闭</span>
        	<i class="ico"></i>
            <h2>恭喜您， 注册成功 ！</h2>
            <p>返回主页中开始一段曼妙旅程吧！</p>
            <a href="/">回到首页</a>
        </div>
    </div>
    <!--广告位-->
	<?php $this->beginWidget('application.widget.adver.passport'); ?>
	<?php $this->endWidget(); ?>
</div>
<script type="text/javascript">

var time = 8;

var sh=setInterval(function(){
	if(time >= 0){
		$(".reg_success span").html(time + "秒后关闭");
		time--;
	}else{
		clearInterval(sh);
		location.href = "<?php echo Yii::app()->createUrl('passport/login');?>";
	}
}, 1000 );

</script>